<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\captcha\Captcha;//设置验证码
?>
<!-- 登录表单 -->
<div class="row">
<div class="col-lg-4">

       <center>
         <h1><font color='black'>登<php echo &nbsp >录</font></h1>
       </center>

       <?php $form = ActiveForm::begin(); ?>

<!-- 表单 -->
       <label class="control-label" for="admin-username">用户名</label>
       <?= $form->field($model, 'username')->textInput(['placeholder'=>"请输入用户名"])->label('') ?>

       <label class="control-label" for="admin-password">密码</label>
       <?= $form->field($model, 'password')->passwordInput(['placeholder'=>"请输入密码"])->label('') ?>

       <label class="control-label" for="admin-verifypassword">确定密码</label>
       <?= $form->field($model, 'verifyPassword')->passwordInput(['placeholder'=>"请再次输入密码"])->label('') ?>

<!-- 验证码 -->
       <?= $form->field($model, 'yzm')->widget(Captcha::className(), [
          'captchaAction'=>'index/captcha',
           'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
     ]) ?>   
      


<div class="form-group">    
        <?= Html::submitButton('登录', ['class' => 'btn btn-primary']) ?>
        <a href="index.php?r=login/index">
        <?= Html::Button('忘记密码', ['class' => 'btn btn-primary']) ?></a>
        <a href="index.php?r=index/index">
        <?= Html::Button('去注册', ['class' => 'btn btn-primary']) ?></a>
</div>

<?php ActiveForm::end(); ?>
</div>
</div>